<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<form action="<%=request.getContextPath()%>/SPedido?=2" method="post"
	id="frm_inspeccion_vehicular" name="frm_inspeccion_vehicular">
	<table style="width: 100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="237px" valign="top"><jsp:include
					page="/pages/estructura/menu_izq.jsp"></jsp:include></td>
			<td width="23px"></td>
			<td width="740px" valign="top">
				<div id="div_border">
					<div class="div_contenido">
						<span class="titulo">Inspeccion Vehicular</span><br>
						<br> <span class="sub_titulo">Vehiculo</span>
						<hr></hr>
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr>
								<td height="23">&nbsp; Placa</td>
								<td>
									<input readonly="readonly" type="text" style="width: 150px" value="${objVehiculo.placa}">
									<input type="hidden" name="idVehiculo" id="idVehiculo" value="${objVehiculo.idVehiculo}">
								</td>
								<td>&nbsp; </td>
								<td align="center"><input type="button" class="btn_buscar"
									onclick="seleccionaBuscarVehiculo('<%=request.getContextPath()%>');" />
								</td>
							</tr>
							<tr>
								<td height="23">&nbsp; Marca</td>
								<td><select style="width: 200px" id="codigoMedioPago"
									name="codigoMedioPago">
										<option>Seleccione</option>
										<c:forEach var="marca" items="${lstMarcas}">
											<option value="${marca.descripcion}" <c:if test="${marca.descripcion eq objVehiculo.marca}">selected="selected"</c:if> >${marca.descripcion}</option>
										</c:forEach>
								</select></td>
								<td height="23">&nbsp; A&ntilde;o</td>
								<td><select style="width: 200px;" id="codigoMedioPago"
									name="codigoMedioPago">
										<option>Seleccione</option>
										<c:forEach var="anio" items="${lstAnios}">
											<option value="${anio.descripcion}" <c:if test="${anio.descripcion eq objVehiculo.anio}">selected="selected"</c:if>>${anio.descripcion}</option>
										</c:forEach>
								</select></td>
							</tr>
							<tr>
								<td height="23">&nbsp; Modelo</td>
								<td><input readonly="readonly" style="width: 150px" type="text" value="${objVehiculo.modelo}"></td>
								<td height="23">&nbsp; Km Inicial</td>
								<td><input readonly="readonly" style="width: 150px" value="${objVehiculo.kmInicial}" type="text" value=""></td>
							</tr>
							<tr>
								<td height="23">&nbsp; Averias</td>
								<td><textarea id="averias" name="averias"
										style="width: 90%" rows="6" cols="1"></textarea></td>
								<td>Estado</td>
								<td><input readonly="readonly" type="text" style="width: 150px" value="${objVehiculo.estado}"></td>
							</tr>
						</table>
						<br> <span class="sub_titulo">Registrar
							Inspecci&oacute;n</span>
						<hr></hr>
						<table style="width: 100%" border="0" cellpadding="0"
							cellspacing="0">
							<tr>
								<td height="23">&nbsp; Revision Tecnica</td>
								<td colspan="3"><input type="radio" name="revisionTecnica"
									value="S" checked="checked"> Si <input type="radio"
									name="revisionTecnica" value="N"> No</td>
								<td></td>
							</tr>
							<tr>
								<td height="23">&nbsp; Inicio Turno</td>
								<td><select style="width: 200px;" id="inicioTurno"
									name="inicioTurno">
										<option value="1">MA&NtildeANA</option>
										<option value="2">TARDE</option>
										<option value="3">NOCHE</option>
								</select></td>
								<td></td>
								<td></td>
								<td></td>
							</tr>
							<tr>
								<td height="23">&nbsp; Fin Turno</td>
								<td><select style="width: 200px;" id="finTurno"
									name="finTurno">
										<option value="1">MA&NtildeANA</option>
										<option value="2">TARDE</option>
										<option value="3">NOCHE</option>
								</select></td>
								<td>Km Final</td>
								<td><input id="kmFinal" name="kmFinal" style="width: 150px" type="text" value=""></td>
								<td></td>
							</tr>
							<tr>
								<td height="23">&nbsp; SOAT</td>
								<td><input id="soat" name="soat" style="width: 150px" type="text" value=""></td>
							</tr>
							<tr>
								<td height="10" colspan="5" ></td>
							</tr>
							<tr>
								<td></td>
								<td></td>
								<td></td>
								<td colspan="2" align="center"><input type="button"
									class="btn_grabar"
									onclick="registrarInspeccionVehicular('<%=request.getContextPath()%>')">
									&nbsp; <input type="button" class="btn_cancelar"
									onclick="document.location.href='<%=request.getContextPath()%>/SPedido?accion=0'">
								</td>
							</tr>
						</table>
					</div>
				</div>
			</td>
		</tr>
	</table>
</form>